package org.nf.web.common.converter;

import org.nf.web.common.TypeConverter;

/**
 * @Author czl
 * @Date 2024-05-17
 */
public class IntegerConverter implements TypeConverter {
    @Override
    public boolean supports(Class<?> paramType) {
        return paramType.equals(Integer.class) || paramType.equals(Integer.TYPE);
    }

    @Override
    public Object convert(String requestParam) {
        return Integer.valueOf(requestParam);
    }
}
